package org.mashibing.constant;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;

/**
 * @author:
 * @create: 2024/3/19 17:19
 * @description: 错误提示
 */
@AllArgsConstructor
@NoArgsConstructor
@Getter
public enum CommonStatusEnum {

    SUCCESS(1,"success"),
    FAIL(0,"fail"),

    /**
     * 验证码：1000-1099
     */
    VERIFICATION_CODE_ERROR(1099,"验证码不正确"),
    // Token：1100-1199
    TOKEN_ERROR(1199,"token错误"),
    // 用户：1200-1299
    USER_NOT_EXISTS(1200,"当前用户不存在"),

    /**
     * 计价规则：1300-1399
     */
    PRICE_RULE_EMPTY(1300,"计价规则不存在"),
    PRICE_RULE_EXISTS(1301,"计价规则已存在，不允许添加"),
    PRICE_RULE_NOT_EDIT(1302,"计价规则没有变化"),
    PRICE_RULE_CHANGED(1303,"计价规则有变化"),


    /**
     * 地图信息：1400-1499
     */
    MAP_DISTRICT_ERROR(1400, "请求地图错误"),

    /**
     * 司机和车辆：1500-1599
     */
    DRIVER_CAR_BIND_NOT_EXITS(1500,"司机和车辆绑定关系不存在"),
    DRIVER_NOT_EXITS(1501,"司机不存在"),
    DRIVER_CAR_BIND_EXITS(1502,"司机和车辆绑定关系已存在，请勿重复绑定"),
    DRIVER_BIND_EXITS(1503,"司机已经被绑定了，请勿重复绑定"),
    CAR_BIND_EXITS(1504,"车辆已经被绑定了，请勿重复绑定");

    private int code;

    private String value;


}
